package com.cg.design.graphicdesignpattern.abstractfactory.tablefactory;

import com.cg.design.graphicdesignpattern.abstractfactory.factory.Link;

/**
 * 具体的零件：TableLink类，使用<td>标签创建表格的列
 *
 * @program: LeetCode->TableLink
 * @description: 具体的零件：TableLink类，使用<td>标签创建表格的列
 * @author: cg
 * @create: 2022-03-22 10:20
 **/
public class TableLink extends Link {
    public TableLink(String caption, String url) {
        super(caption, url);
    }

    @Override
    public String makeHTML() {
        return "<td><a href=\"" + url + "\">" + caption + "</a></td>\n";
    }
}
